// pages/DAS28assessmentFive/DAS28assessmentFive.js
var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    colorNum:'',
    hidden:true,
    num:0,
    carts: [
      { "name": "1", "id": "0", "value": "无困难", selected: false },
      { "name": "2", "id": "1", "value": "稍困难", selected: false },
      { "name": "3", "id": "2", "value": "很困难", selected: false },
      { "name": "4", "id": "3", "value": "做不到", selected: false }
    ],
  },
  // 跳转
  url: function (e) {
    wx.redirectTo({
      url: '../DAS28assessmentFour/DAS28assessmentFour'
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },
  bindchange1:function (e) {
    app.d.h1 = e.detail.value;
  },
  bindchange2: function (e) {
    app.d.h2 = e.detail.value;
  },
  bindchange3: function (e) {
    app.d.h3 = e.detail.value;
  },
  bindchange4: function (e) {
    app.d.h4 = e.detail.value;
  },
  bindchange5: function (e) {
    app.d.h5 = e.detail.value;
  },
  bindchange6: function (e) {
    app.d.h6 = e.detail.value;
  },
  bindchange7: function (e) {
    app.d.h7 = e.detail.value;
  },
  bindchange8: function (e) {
    app.d.h8 = e.detail.value;
  },
  next:function () {
    if (app.d.h1 == '' || app.d.h2 == '' || app.d.h3 == '' || app.d.h4 == '' || app.d.h5 == '' || app.d.h6 == '' || app.d.h7 == '' || app.d.h8 == ''){
      wx.showToast({
        title: '请填写完成问卷！',
      });
      return false;
    }
    wx.redirectTo({
      url:'../DAS28assessmentSix/DAS28assessmentSix'
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})